# Author: wangjk
# 2025年10月28日11时10分
# xxx@qq.com

lifang = [i ** 3 for i in range(1, 11)]
print(f'The first three items in the list are:{lifang[:3]}')  # 要注意差一错误
print(f'Three items from the middle of the list are:{lifang[4:7]}')
print(f'The last three items in the list are:{lifang[-3:]}')
